package com.igeek.boot.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author jwj
 * @since 2023-12-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("menu")
@ApiModel(value="Menu对象", description="")
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "菜单表的主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "操作的菜单名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "路由的路径")
    @TableField("link_url")
    private String linkUrl;

    @ApiModelProperty(value = "对应的是el-menu标签的index属性，唯一表示")
    @TableField("path")
    private String path;

    @ApiModelProperty(value = "子菜单的优先级关系")
    @TableField("priority")
    private Integer priority;

    @ApiModelProperty(value = "菜单的图标组件")
    @TableField("icon")
    private String icon;

    @ApiModelProperty(value = "菜单的详情描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "对应父菜单的ID")
    @TableField("parentMenuId")
    private Integer parentMenuId;

    @ApiModelProperty(value = "表明菜单的级别")
    @TableField("level")
    private Integer level;


}
